import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-04-14
 * Time: 16:32
 */
public class deom5 {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> queue = new LinkedBlockingDeque<>(100);

        for (int i = 0; i < 100; i++) {
            queue.put("aaaa");
        }
        System.out.println("队列已经满了");

        queue.put("aaaa");
        System.out.println("再次尝试 put 元素");
    }
}
